package com.dengyafei.mapper;

import com.dengyafei.bean.GraduateEntity;
import com.dengyafei.bean.GraduateEntityExample;

import java.util.List;

import com.dengyafei.domin.dto.GraduateRegisterDTO;
import com.dengyafei.domin.dto.GraduateUpdatePasswordDTO;
import com.dengyafei.domin.dto.ResetPasswordDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 邓亚非
 */
@Mapper
public interface GraduateEntityMapper {
    int countByExample(GraduateEntityExample example);

    int deleteByExample(GraduateEntityExample example);

    int deleteByPrimaryKey(Integer gid);

    int insert(GraduateEntity record);

    int insertSelective(GraduateEntity record);

    List<GraduateEntity> selectByExample(GraduateEntityExample example);

    GraduateEntity selectByPrimaryKey(Integer gid);

    int updateByExampleSelective(@Param("record") GraduateEntity record, @Param("example") GraduateEntityExample example);

    int updateByExample(@Param("record") GraduateEntity record, @Param("example") GraduateEntityExample example);

    int updateByPrimaryKeySelective(GraduateEntity record);

    int updateByPrimaryKey(GraduateEntity record);

    Integer graduateRegister(GraduateRegisterDTO graduateRegisterDTO);

    GraduateEntity queryAllByGname(String gname);

    Integer resetPassword(ResetPasswordDTO resetPasswordDTO);

    Integer updatePassword(GraduateUpdatePasswordDTO graduateUpdatePasswordDTO);

    List<GraduateEntity> queryGraduates();
}